3.19.29 \(\int (d+e x)^3 (a d e+(c d^2+a e^2) x+c d e x^2) \, dx\) [1829]

Optimal. Leaf size=39 \[ \frac {1}{5} \left (a-\frac {c d^2}{e^2}\right ) (d+e x)^5+\frac {c d (d+e x)^6}{6 e^2} \]

[Out]

1/5*(a-c*d^2/e^2)*(e*x+d)^5+1/6*c*d*(e*x+d)^6/e^2

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.061, Rules used = {640, 45} \begin {gather*} \frac {1}{5} (d+e x)^5 \left (a-\frac {c d^2}{e^2}\right )+\frac {c d (d+e x)^6}{6 e^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(d + e*x)^3*(a*d*e + (c*d^2 + a*e^2)*x + c*d*e*x^2),x]

[Out]

((a - (c*d^2)/e^2)*(d + e*x)^5)/5 + (c*d*(d + e*x)^6)/(6*e^2)

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 640

Int[((d_) + (e_.)*(x_))^(m_.)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[(d + e*x)^(m + p)*(a
/d + (c/e)*x)^p, x] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[c*d^2 - b*d*e + a*e^2, 0] &&
 IntegerQ[p]

Rubi steps

\begin {align*} \int (d+e x)^3 \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right ) \, dx &=\int (a e+c d x) (d+e x)^4 \, dx\\ &=\int \left (\frac {\left (-c d^2+a e^2\right ) (d+e x)^4}{e}+\frac {c d (d+e x)^5}{e}\right ) \, dx\\ &=\frac {1}{5} \left (a-\frac {c d^2}{e^2}\right ) (d+e x)^5+\frac {c d (d+e x)^6}{6 e^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(95\) vs. \(2(39)=78\).
time = 0.01, size = 95, normalized size = 2.44 \begin {gather*} \frac {1}{30} x \left (6 a e \left (5 d^4+10 d^3 e x+10 d^2 e^2 x^2+5 d e^3 x^3+e^4 x^4\right )+c d x \left (15 d^4+40 d^3 e x+45 d^2 e^2 x^2+24 d e^3 x^3+5 e^4 x^4\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(d + e*x)^3*(a*d*e + (c*d^2 + a*e^2)*x + c*d*e*x^2),x]

[Out]

(x*(6*a*e*(5*d^4 + 10*d^3*e*x + 10*d^2*e^2*x^2 + 5*d*e^3*x^3 + e^4*x^4) + c*d*x*(15*d^4 + 40*d^3*e*x + 45*d^2*
e^2*x^2 + 24*d*e^3*x^3 + 5*e^4*x^4)))/30

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(154\) vs. \(2(35)=70\).
time = 0.49, size = 155, normalized size = 3.97

method result size
norman \(\frac {c d \,e^{4} x^{6}}{6}+\left (\frac {1}{5} a \,e^{5}+\frac {4}{5} c \,d^{2} e^{3}\right ) x^{5}+\left (a d \,e^{4}+\frac {3}{2} d^{3} e^{2} c \right ) x^{4}+\left (2 a \,e^{3} d^{2}+\frac {4}{3} c \,d^{4} e \right ) x^{3}+\left (2 a \,e^{2} d^{3}+\frac {1}{2} c \,d^{5}\right ) x^{2}+a e \,d^{4} x\) \(100\)
gosper \(\frac {x \left (5 c d \,e^{4} x^{5}+6 x^{4} a \,e^{5}+24 x^{4} c \,d^{2} e^{3}+30 x^{3} a d \,e^{4}+45 x^{3} d^{3} e^{2} c +60 x^{2} a \,e^{3} d^{2}+40 x^{2} c \,d^{4} e +60 x a \,e^{2} d^{3}+15 x c \,d^{5}+30 a e \,d^{4}\right )}{30}\) \(104\)
risch \(\frac {1}{6} c d \,e^{4} x^{6}+\frac {1}{5} x^{5} a \,e^{5}+\frac {4}{5} x^{5} c \,d^{2} e^{3}+x^{4} a d \,e^{4}+\frac {3}{2} x^{4} d^{3} e^{2} c +2 x^{3} a \,e^{3} d^{2}+\frac {4}{3} x^{3} c \,d^{4} e +2 x^{2} a \,e^{2} d^{3}+\frac {1}{2} x^{2} c \,d^{5}+a e \,d^{4} x\) \(104\)
default \(\frac {c d \,e^{4} x^{6}}{6}+\frac {\left (3 c \,d^{2} e^{3}+e^{3} \left (e^{2} a +c \,d^{2}\right )\right ) x^{5}}{5}+\frac {\left (3 d^{3} e^{2} c +3 d \,e^{2} \left (e^{2} a +c \,d^{2}\right )+a d \,e^{4}\right ) x^{4}}{4}+\frac {\left (c \,d^{4} e +3 d^{2} e \left (e^{2} a +c \,d^{2}\right )+3 a \,e^{3} d^{2}\right ) x^{3}}{3}+\frac {\left (d^{3} \left (e^{2} a +c \,d^{2}\right )+3 a \,e^{2} d^{3}\right ) x^{2}}{2}+a e \,d^{4} x\) \(155\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*x+d)^3*(a*d*e+(a*e^2+c*d^2)*x+c*d*e*x^2),x,method=_RETURNVERBOSE)

[Out]

1/6*c*d*e^4*x^6+1/5*(3*c*d^2*e^3+e^3*(a*e^2+c*d^2))*x^5+1/4*(3*d^3*e^2*c+3*d*e^2*(a*e^2+c*d^2)+a*d*e^4)*x^4+1/
3*(c*d^4*e+3*d^2*e*(a*e^2+c*d^2)+3*a*e^3*d^2)*x^3+1/2*(d^3*(a*e^2+c*d^2)+3*a*e^2*d^3)*x^2+a*e*d^4*x

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 97 vs. \(2 (36) = 72\).
time = 0.27, size = 97, normalized size = 2.49 \begin {gather*} \frac {1}{6} \, c d x^{6} e^{4} + a d^{4} x e + \frac {1}{5} \, {\left (4 \, c d^{2} e^{3} + a e^{5}\right )} x^{5} + \frac {1}{2} \, {\left (3 \, c d^{3} e^{2} + 2 \, a d e^{4}\right )} x^{4} + \frac {2}{3} \, {\left (2 \, c d^{4} e + 3 \, a d^{2} e^{3}\right )} x^{3} + \frac {1}{2} \, {\left (c d^{5} + 4 \, a d^{3} e^{2}\right )} x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)^3*(a*d*e+(a*e^2+c*d^2)*x+c*d*e*x^2),x, algorithm="maxima")

[Out]

1/6*c*d*x^6*e^4 + a*d^4*x*e + 1/5*(4*c*d^2*e^3 + a*e^5)*x^5 + 1/2*(3*c*d^3*e^2 + 2*a*d*e^4)*x^4 + 2/3*(2*c*d^4
*e + 3*a*d^2*e^3)*x^3 + 1/2*(c*d^5 + 4*a*d^3*e^2)*x^2

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 103 vs. \(2 (36) = 72\).
time = 1.94, size = 103, normalized size = 2.64 \begin {gather*} \frac {1}{2} \, c d^{5} x^{2} + \frac {1}{5} \, a x^{5} e^{5} + \frac {1}{6} \, {\left (c d x^{6} + 6 \, a d x^{4}\right )} e^{4} + \frac {2}{5} \, {\left (2 \, c d^{2} x^{5} + 5 \, a d^{2} x^{3}\right )} e^{3} + \frac {1}{2} \, {\left (3 \, c d^{3} x^{4} + 4 \, a d^{3} x^{2}\right )} e^{2} + \frac {1}{3} \, {\left (4 \, c d^{4} x^{3} + 3 \, a d^{4} x\right )} e \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)^3*(a*d*e+(a*e^2+c*d^2)*x+c*d*e*x^2),x, algorithm="fricas")

[Out]

1/2*c*d^5*x^2 + 1/5*a*x^5*e^5 + 1/6*(c*d*x^6 + 6*a*d*x^4)*e^4 + 2/5*(2*c*d^2*x^5 + 5*a*d^2*x^3)*e^3 + 1/2*(3*c
*d^3*x^4 + 4*a*d^3*x^2)*e^2 + 1/3*(4*c*d^4*x^3 + 3*a*d^4*x)*e

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 107 vs. \(2 (34) = 68\).
time = 0.02, size = 107, normalized size = 2.74 \begin {gather*} a d^{4} e x + \frac {c d e^{4} x^{6}}{6} + x^{5} \left (\frac {a e^{5}}{5} + \frac {4 c d^{2} e^{3}}{5}\right ) + x^{4} \left (a d e^{4} + \frac {3 c d^{3} e^{2}}{2}\right ) + x^{3} \cdot \left (2 a d^{2} e^{3} + \frac {4 c d^{4} e}{3}\right ) + x^{2} \cdot \left (2 a d^{3} e^{2} + \frac {c d^{5}}{2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)**3*(a*d*e+(a*e**2+c*d**2)*x+c*d*e*x**2),x)

[Out]

a*d**4*e*x + c*d*e**4*x**6/6 + x**5*(a*e**5/5 + 4*c*d**2*e**3/5) + x**4*(a*d*e**4 + 3*c*d**3*e**2/2) + x**3*(2
*a*d**2*e**3 + 4*c*d**4*e/3) + x**2*(2*a*d**3*e**2 + c*d**5/2)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 98 vs. \(2 (36) = 72\).
time = 1.03, size = 98, normalized size = 2.51 \begin {gather*} \frac {1}{6} \, c d x^{6} e^{4} + \frac {4}{5} \, c d^{2} x^{5} e^{3} + \frac {3}{2} \, c d^{3} x^{4} e^{2} + \frac {4}{3} \, c d^{4} x^{3} e + \frac {1}{2} \, c d^{5} x^{2} + \frac {1}{5} \, a x^{5} e^{5} + a d x^{4} e^{4} + 2 \, a d^{2} x^{3} e^{3} + 2 \, a d^{3} x^{2} e^{2} + a d^{4} x e \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)^3*(a*d*e+(a*e^2+c*d^2)*x+c*d*e*x^2),x, algorithm="giac")

[Out]

1/6*c*d*x^6*e^4 + 4/5*c*d^2*x^5*e^3 + 3/2*c*d^3*x^4*e^2 + 4/3*c*d^4*x^3*e + 1/2*c*d^5*x^2 + 1/5*a*x^5*e^5 + a*
d*x^4*e^4 + 2*a*d^2*x^3*e^3 + 2*a*d^3*x^2*e^2 + a*d^4*x*e

________________________________________________________________________________________

Mupad [B]
time = 0.04, size = 99, normalized size = 2.54 \begin {gather*} x^2\,\left (\frac {c\,d^5}{2}+2\,a\,d^3\,e^2\right )+x^5\,\left (\frac {4\,c\,d^2\,e^3}{5}+\frac {a\,e^5}{5}\right )+x^4\,\left (\frac {3\,c\,d^3\,e^2}{2}+a\,d\,e^4\right )+x^3\,\left (\frac {4\,c\,d^4\,e}{3}+2\,a\,d^2\,e^3\right )+a\,d^4\,e\,x+\frac {c\,d\,e^4\,x^6}{6} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d + e*x)^3*(x*(a*e^2 + c*d^2) + a*d*e + c*d*e*x^2),x)

[Out]

x^2*((c*d^5)/2 + 2*a*d^3*e^2) + x^5*((a*e^5)/5 + (4*c*d^2*e^3)/5) + x^4*((3*c*d^3*e^2)/2 + a*d*e^4) + x^3*(2*a
*d^2*e^3 + (4*c*d^4*e)/3) + a*d^4*e*x + (c*d*e^4*x^6)/6

________________________________________________________________________________________